#ifndef __KINECTWINMGR_H__
#define __KINECTWINMGR_H__

#include "kinect.h"

namespace Tracking{

	class Kinect;

// Kinect manager class that initializes NUI and listens for events from NUI runtime
class KinectWinMgr
{
public:
    KinectWinMgr(Kinect* p);
    ~KinectWinMgr();
    bool init();
    void uninit();
	

	bool update(){ return true;}


private:
	Kinect* _parent;

    static DWORD WINAPI NuiGuessGestureThread( LPVOID pParam );
    static DWORD WINAPI NuiProcessThread( LPVOID pParam );
    void NuiGotSkeletonAlert();

    HANDLE m_hNuiProcessThread;
    HANDLE m_hEvNuiProcessThreadStopEvent;
    HANDLE m_hNuiSkeletonEvent;



};
}
#endif // __KINECTWINMGR_H__